const mongoose = require("mongoose");
const { dbUrl } = require("./url");

mongoose
    .connect(dbUrl)
    .then(() => {
        console.log("数据库连接成功");
    })
    .catch((err) => {
        console.log("数据库连接失败");
        console.log(err);
    });
